<?php
namespace user\service;

use user\service\interfaces\IBankSignLogService;
use common\service\CommonService;
use herosphp\core\Loader;
use herosphp\string\StringUtils;

Loader::import('user.service.interfaces.IBankSignLogService');

/**
 * user(Service)接口实现
 * @package user\service
 * @author yangjian<yangjian102621@gmail.com>
 */
class BankSignLogService extends CommonService implements IBankSignLogService {

    public function getItems($conditions, $fields, $order, $limit, $group, $having)
    {
        $items = $this->getModelDao()->getItems($conditions, $fields, $order, $limit, $group, $having);
        foreach ( $items as $key => $value ) {
            $ext = StringUtils::jsonDecode($value['ext']);
            $items[$key] = array_merge($value, $ext);
        }
        return $items;
    }
}
